<extend name="common/layouts"/>


<block name="content">

    <div class="kt-portlet">
        <div class="kt-portlet__head">
            <div class="kt-portlet__head-label">
                <h3 class="kt-portlet__head-title">
                    用户管理
                </h3>
            </div>
        </div>
        <div class="kt-portlet__body">

            <!--begin::Section-->
            <div class="kt-section">
                <div class="kt-section__content">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>用户名</th>
                            <th>真实姓名</th>
                            <th>学号</th>
                            <th>性别</th>
                            <th>身份</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list" item="vo">
                            <tr>
                                <th>{$vo['id']}</th>
                                <th scope="row">{$vo['name']}</th>
                                <td>{$vo['realname']}</td>
                                <td>{$vo['code']}</td>
                                <td>
                                    <if condition="$vo['sex'] == 1 ">男
                                        <else/>
                                        女
                                    </if>
                                </td>
                                <td>
                                    <if condition="$vo['role'] == 1 "> 管理员</if>
                                    <if condition="$vo['role'] == 2 "> 教师</if>
                                    <if condition="$vo['role'] == 3 "> 学生</if>
                                </td>
                            </tr>
                        </foreach>

                        </tbody>

                    </table>
                </div>
            </div>

            <div class="ck-paginate font-weight-bold kt-font-lg kt-font-regular">
                {$page}
            </div>
            <!--end::Section-->


        </div>

        <!--end::Form-->
    </div>
</block>